/**
 * Created by ben on 5/9/16.
 */

var casper = require("casper").create({
  onRunComplete: function() {
    // Don't exit on complete.
  }
});

casper.start('http://www.bjjs.gov.cn/tabid/763/default.aspx');
casper.then(function() {
    this.clickLabel('下一页', 'a');
});

casper.then(function () {
    this.echo(casper.page.content);
});

casper.run();